#!/bin/sh

uci -q batch <<-EOF >/dev/null
	delete firewall.dnscrypt-proxy
	set firewall.dnscrypt-proxy=include
	set firewall.dnscrypt-proxy.type=script
	set firewall.dnscrypt-proxy.path=/etc/firewall.dnscrypt-proxy
	set firewall.dnscrypt-proxy.reload=1
	commit firewall
EOF

/etc/init.d/dnscrypt-proxy enable >/dev/null 2>&1

exit 0
